﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="NNKDCoDieuKien.ascx.vb"
    Inherits="FrontEnd_Control_NNKDCoDieuKien" %>
<%@ Import Namespace="Cls_common" %>
<script type='text/javascript'>
    function ajaxJquery() {
        $(function () {
            //show hidden box description
            $("a").click(function () {

                var _Obj = $(this).parent().find(".ShowSub");
                _Obj.toggle(1000);
            });

            $(".Date").datepicker({ dateFormat: 'dd/mm/yy' });
            // ChangeShow();            
            //check cookie to show or hide search pannel
            if ($.cookie('CookieSSMSearch') == 1) {
                $('#pnlSearch').show();
            }
            else {
                $('#pnlSearch').hide();
            }

            $("#<%=btnClear.ClientID %>").click(function () {
                $("#divExpert").css("display", "none");
                return true;
            });

            $('#B1').click(function (event) {
                //set cookie
                if ($.cookie('CookieSSMSearch') == 1) {
                    $.cookie('CookieSSMSearch', 0)
                }
                else {
                    $.cookie('CookieSSMSearch', 1)
                }
                $('#pnlSearchNganhNghe').slideToggle(500);

                if ($('#imgShowHide').attr("src") == "images/arrow_popup.gif") {

                    $('#imgShowHide').attr("src", "images/arrow_showless.gif");
                }
                else {
                    $('#imgShowHide').attr("src", "images/arrow_popup.gif");
                }
            });


            $("#pnlSearchNganhNghe input, #pnlSearchNganhNghe select").keypress(function (e) {

                if (e.keyCode == 13) {
                    $("#<%=btnFilterNganhNghe.ClientID()%>").click();
                    return false;
                }
            });
        });
    }


    function ResetSearch() {
        $('#pnlSearch [type=text]').each(function (e) {
            $(this).val("");
        });
        $('#pnlSearch select').each(function (e) {
            $(this).attr('selectedIndex', 0);
        });

        return false;
    }
    
</script>
<asp:UpdatePanel ID="uplKetQuaKD" runat="server">
    <ContentTemplate>
        <div class="box-wrapper-new padding-fix">
            <div class="box-new-left panel-corner">
                <div class="boxCenter">
                    <!--title Intro -->
                    <div class="row-titlemain">
                        <div class="text-titlemain">
                            <div class="panel-title text-uppercase">
                                <img alt="kinh doanh co dieu kien" src='<%=Maindomain + "FrontEnd/images/icon_intro.png" %>'
                                    border="0" align="absmiddle">&nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server"
                                        Text="NGÀNH NGHỀ KINH DOANH CÓ ĐIỀU KIỆN"></asp:Literal>
                            </div>
                        </div>
                    </div>
                    <!-- end title intro -->
                    <!-- Content -->
                    <div class="text-content">
                        <div class="list-content">
                            Trong phần này, bạn sẽ được cung cấp danh mục các ngành, nghề kinh doanh có điều
                            kiện và các điều kiện kinh doanh để triển khai đăng ký hoạt động các ngành, nghề
                            trên.
                        </div>
                        <div style="clear: both; height: 10px;">
                        </div>
                        <img alt="" src='<%=Maindomain + "images/arrow_showless.gif" %>' id="imgShowHide" />
                        <a id="B1" href="#">Tìm kiếm </a>
                        <div id="pnlSearchNganhNghe">
                            <div class="DivRow" style="padding-bottom: 28px">
                                <div class="DivLabel" style="width: 25%; text-align: right; float: left">
                                    Mã ngành nghề:</div>
                                <div class=" DivTextBox" style="width: 70%; float: left">
                                    <asp:TextBox ID="txtCode" runat="server" CssClass='TextBox'></asp:TextBox></div>
                            </div>
                            <div class="DivRow">
                                <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                                    Tên ngành nghề:</div>
                                <div class="DivTextBox" style="width: 70%; float: left">
                                    <asp:TextBox ID="txtName" runat="server" CssClass='TextBox'></asp:TextBox>
                                </div>
                            </div>
                            <div class="DivRow">
                                <div style="width: 25%; text-align: right; float: left" class="DivLabel">
                                    &nbsp;</div>
                                <div class="DivTextBox" style="width: 70%; float: left">
                                    <div class="btnOrange_large">
                                        <asp:Button ID="btnFilterNganhNghe" runat="server" Text='Tìm kiếm' CssClass="btn btn-sm btn-info" />
                                    </div>
                                    <div class="btnOrange_large">
                                        <asp:Button ID="btnClear" runat="server" CausesValidation="false" Text="Hủy" CssClass="btn" />
                                    </div>
                                </div>
                            </div>
                            <div class="DivRow" style="padding-top: 10px">
                                <asp:Repeater ID="rptKetQua" runat="server">
                                    <ItemTemplate>
                                        <div class="DivRowKetQua">
                                            <div class="DivLeft">
                                                <h4>
                                                    <asp:Literal ID="ltrTitle" runat="server"></asp:Literal></h4>
                                            </div>
                                            <div class="DivRight">
                                                <asp:Literal ID="ltrDescription" runat="server"></asp:Literal>
                                                <asp:Repeater ID="rptSub" runat="server" OnItemDataBound="rptSub_ItemDataBound">
                                                    <ItemTemplate>
                                                        <div class="ShowTitle">
                                                            <asp:HyperLink ID="hplTitleSub" runat="server" Style="cursor: pointer;"></asp:HyperLink>
                                                            <div class="ShowSub" style="display: none;">
                                                                <asp:Literal ID="ltrDescriptionSub" runat="server"></asp:Literal></div>
                                                            <div style="height: 10px; clear: both;">
                                                            </div>
                                                        </div>
                                                    </ItemTemplate>
                                                </asp:Repeater>
                                            </div>
                                        </div>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </div>
                        </div>
                        <div style="clear: both; height: 10px;">
                        </div>
                    </div>
                    <!-- Content -->
                </div>
            </div>
            <div class="box-new-right panel-corner" style="margin-top: 0px">
                <div class="panel-title text-uppercase">
                    Ngành nghề phổ biến
                </div>
                <div>
                    <ul>
                        <asp:Repeater ID="rptNganhNghePhoBien" runat="server">
                            <ItemTemplate>
                                <li>
                                    <asp:HyperLink ID="hplTitle" runat="server"></asp:HyperLink></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
